package com.jeecg.school.dao.impl;

import java.io.IOException;

import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;

import com.jeecg.school.dao.ILoanApplyDao;

@Repository("loanApplyDao")
public class LoanApplyDaoImpl implements ILoanApplyDao {
	@Override
	public int getLoanApplyCount() throws IOException {
		SqlSession sqlSession = null;
		sqlSession = DBAccess.getSqlSession();//获取SqlSession对象
                //这里要主意了下面文章解释
		int count = sqlSession.selectOne("studentMapper.getCount");
		sqlSession.close();
		return count;
	}
}
